package com.smmisia.auth.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;

/**
 * OSS服务远程调用
 * @author: smmisia
 * @date: 2023/5/27
 */
@Component
@FeignClient(name="oss-dev")
public interface  OssService {

    @PostMapping(value = "/qrcode", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public HashMap<String, String> qrcode(@RequestPart("file") MultipartFile uploadFile);
}